<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Complaint.Models.Dtos.User>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <title>Your Account Details</title>
    <meta name="description" content="icomplain user account details" />
    <meta name="keywords" content="icomplain,account details,change password,complaints" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Your Account Details</h2>
    <fieldset>
        <legend>Fields</legend>
        <p>
            Title:
            <%= Html.Encode(Model.Title) %>
        </p>
        <p>
            FirstName:
            <%= Html.Encode(Model.FirstName) %>
        </p>
        <p>
            LastName:
            <%= Html.Encode(Model.LastName) %>
        </p>
        <p>
            Email:
            <%= Html.Encode(Model.Email) %>
        </p>
        <p>
            Password:
            <%= Html.Encode(string.Empty.PadLeft(Model.Password.Length, '*')) %>
            <%= Html.ActionLink("Change password", "ChangePassword")%>
        </p>
        <p>
            Password question:
            <%= Html.Encode(Model.PasswordQuestion.Question) %>
        </p>
        <p>
            PasswordAnswer:
            <%= Html.Encode(Model.PasswordAnswer) %>
        </p>
        <p>
            DisplayName:
            <%= Html.Encode(Model.DisplayName) %>
        </p>
        <p>
            RegDate:
            <%= Html.Encode(String.Format("{0:g}", Model.RegDate)) %>
        </p>
    </fieldset>
    <p>
        <%= Html.RouteLink("Your Complaints", "ComplaintByUser", new { userName = Model.DisplayName}, new { title = "Click to see your complaints."}) %>
    </p>
</asp:Content>
